#ifndef N1D_SESSIONS_2009_10_15
#define N1D_SESSIONS_2009_10_15

typedef struct 
{
    int  is_used;
    char hid[UAP_HID_SIZE];
    int  connected_to;       //SID of user connected with

    union 
    {
       unsigned int vars[5];
       struct 
       {
           unsigned int time_to_disconnect; //in seconds to close session
       }
    }
} SESSION, *LPSESSION;

void n1d_sessions_initialize();

int findFreeSession();
LPSESSION getSession(int index);
void      freeSession(int index);


#endif //N1D_SESSIONS_2009_10_15
